const koaStatic = require('koa-static'),
    path = require('path');

module.exports = (options, app) => {
    return koaStatic(path.join(app.baseDir, options.root), options);
}